#pragma once

struct DSA_SingleGraph{
	TCHAR title[256];
	int signiture;
};

class DSASingleGraph
{
	DSA_SingleGraph des;
	Rect rect;
	const DSACalculator *calc;
	BMPBuffer *buf;
public:
	DSASingleGraph(const DSACalculator *c, const DSA_SingleGraph descriptor):des(descriptor),calc(c), buf(0){};
	~DSASingleGraph(void){SAFE_DELETE(buf);}
	void SetGraphRect(int x, int y, int w, int h){SetGraphRect(Rect(x,y,w,h));}
	void SetGraphRect(Rect &r){
		rect = r; 
		SAFE_DELETE(buf);
	}
	void Draw(Graphics *g);
};
